/**
 * 
 */
package com.ydy.service.good;

import java.util.List;

import com.ydy.model.Sku;
import com.ydy.model.Spu;
import com.ydy.model.Staff;
import com.ydy.vo.other.BaseVo;
import com.ydy.vo.other.PageVo;

/**
 * @author xuzhaojie
 *
 *         2019年5月27日 下午3:02:19
 */
public interface GoodService {

	PageVo<Spu> select(Spu spu, Staff staff, Integer page, Integer size);

	Spu selectSpuByIdForUser(Long spuId);

	Spu selectSpuById(Long spuId, Staff staff);

	Sku selectSkuById(Long skuId, Staff staff);

	PageVo<Spu> list(String name, Long shopId, Integer page, Integer size);

	Spu saveOrUpdateSpu(Spu spu, Staff staff);

	BaseVo statusSpu(Long spuId, Staff staff);

	BaseVo upSpu(Long spuId, Staff staff);

	BaseVo deleteSpu(Long spuId, Staff staff);

	Sku saveOrUpdateSku(Sku sku, Staff staff);

	List<Sku> selectSkuBySpuId(Long spuId, Staff staff);

	BaseVo statusSku(Long skuId, Staff staff);

	BaseVo deleteSku(Long skuId, Staff staff);
}
